package com.aliwo.service.impl;

import com.aliwo.aspect.annotation.MessageLog;
import com.aliwo.entity.MessageRecord;
import com.aliwo.mapper.MessageRecordMapper;
import com.aliwo.service.MessageConsumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * .
 *
 * @author Xu Yayuan
 * @date 2021/11/18
 */
@Service
public class MessageConsumerImpl implements MessageConsumer {

    @Autowired
    private MessageRecordMapper messageRecordMapper;

    /**
     * 待完成发送消息的功能
     *
     * @param messageRecord 日志信息
     * @return
     */
    @Override
    @MessageLog("测试环绕通知")
    public Integer sendMessage(MessageRecord messageRecord) {
        // TODO 发送消息待开发
        System.out.println("执行了方法");
        return 1;
    }
}
